﻿.skeleton {
    width: 100%;
    flex: 1;
}

.skeleton-content {
    position: relative;
}

.skeleton-row {
    min-height: 32px;
    background-color: #e9ecef;
}

    .skeleton-row:not(:last-child) {
        margin-bottom: 0.5rem;
    }

.skeleton-content.round .skeleton-col,
.skeleton-content.round .tree-node {
    border-radius: var(--bs-border-radius);
}

.skeleton-content.active .skeleton-col,
.skeleton-content.active .skeleton-avatar,
.skeleton-content.active .tree-node {
    background: -webkit-gradient(linear,left top,right top,color-stop(25%,#f2f2f2),color-stop(37%,#e6e6e6),color-stop(63%,#f2f2f2));
    background: linear-gradient(90deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);
    background-size: 400% 100%;
    -webkit-animation: skeleton-loading 1.4s ease infinite;
    animation: skeleton-loading 1.4s ease infinite;
}

@-webkit-keyframes skeleton-loading {
    0% {
        background-position: 100% 50%
    }

    to {
        background-position: 0 50%
    }
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%
    }

    to {
        background-position: 0 50%
    }
}

@media (min-width: 576px) {
    .skeleton-content .control-label.skeleton-row {
        margin-bottom: 0;
    }
}

.skeleton-content .form-control.skeleton-row {
    flex: 1;
}

.skeleton-avatar {
    width: 2rem;
    height: 2rem;
}

.skeleton-content.round .skeleton-avatar {
    border-radius: 4px;
}

.skeleton-content .skeleton-avatar.circle {
    border-radius: 50%;
}

.skeleton-table,
.skeleton-buttons {
    border-radius: var(--bs-border-radius);
    border: 1px solid #dee2e6;
    overflow: hidden;
}

    .skeleton-table .skeleton-content .skeleton-row {
        background: #fff;
        display: flex;
        height: 39px;
        padding: .5rem;
        margin: 0;
    }

        .skeleton-table .skeleton-content .skeleton-row:nth-of-type(odd):not(:first-of-type) {
            background: #f5f8fabf;
        }

        .skeleton-table .skeleton-content .skeleton-row:first-of-type {
            border-bottom: 2px solid var(--bs-secondary);
        }

        .skeleton-table .skeleton-content .skeleton-row .skeleton-col,
        .skeleton.tree .tree-item .tree-node {
            flex: 1;
            background-color: #e9ecef;
            margin: 5px;
            height: 12.5px;
        }

    .skeleton-table .skeleton-row:first-of-type .skeleton-col {
        background: #ddd;
    }

.skeleton-toolbar {
    height: 35px;
    display: flex;
    margin-bottom: .5rem;
}

.skeleton-buttons {
    display: inline-flex;
    overflow: hidden;
}

.skeleton-button {
    height: 35px;
    width: 70px;
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

    .skeleton-button:not(:last-child) {
        border-right: 1px solid #ddd;
    }

.skeleton .tree-node {
    background-color: #e9ecef;
    height: 11px;
    margin: 5px 0 5px 5px;
}
